<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus" value="<#if (condition.advancedStatus)??>${condition.advancedStatus!''}</#if>">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label> <@label key='equipmentCode.C,colon'>设备编号：</@label> </label> <input type="text" name="equipmentCode" value="${condition.equipmentCode!''}" /></li>
                <li><label> <@label key='equipmentText.C,colon'>设备描述：</@label> </label> <input type="text" name="equipmentText" value="${condition.equipmentText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li><label><@label key="theDate.C,colon">作业日期：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="theDateSt" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.theDateSt)??>${condition.theDateSt?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li><label><@label key="to.C,colon">至：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="theDateEd" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.theDateEd)??>${condition.theDateEd?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>
                <li class="advancedQuery"><a href="javascript:void(0);" onclick="openAdvanced(navTab.getCurrentPanel());"> <@label key="advancedQuery.C">高级查询</@label> </a> <span onclick="openAdvanced(navTab.getCurrentPanel());"></span></li>
            </ul>
        </div>
    </div>
    <div id="collapsablePanel" style="display: none;" class="pageHeader">
        <div class="searchBar poStatus">
            <ul class="searchContent">
                <li><label><@label key="createDateTime.C,colon">创建时间：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="createDateTimeSt" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.createDateTimeSt)??>${condition.createDateTimeSt?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li><label><@label key="to.C,colon">至：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="createDateTimeEd" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.createDateTimeEd)??>${condition.createDateTimeEd?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li><label> <@label key='createUser.C,colon'>创建人：</@label> </label> <input type="text" name="createUser" value="${condition.createUser!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li><label><@label key="modifyDateTime.C,colon">修改时间：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="modifyDateTimeSt" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.modifyDateTimeSt)??>${condition.modifyDateTimeSt?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li><label><@label key="to.C,colon">至：</@label></label> <input type="text" readonly="readonly" style="background-color: #fff;" name="modifyDateTimeEd" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.modifyDateTimeEd)??>${condition.modifyDateTimeEd?string("yyyy-MM-dd")}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a></li>
                <li><label> <@label key='modifyUser.C,colon'>修改人：</@label> </label> <input type="text" name="modifyUser" value="${condition.modifyUser!''}" /></li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
             <@buttonRight menuCode="EQUIPMENTOUTPUT_ADD" labelKey="add.B" defalutName="新增"> 
            <li><a class="add" target="dialog" mask="true" width="640" height="270" rel="addEquipmentOutput" href="${rc.getContextPath()}/manage/equipmentOutput/addEquipmentOutput?navTabId=${navTabId!''}" title="<@label key='addEquipmentOutput.D'>新增设备产量</@label>"><span><@label key="add.B">新增</@label></span> </a></li> </@buttonRight>
            <@buttonRight menuCode="EQUIPMENTOUTPUT_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="640" height="320" rel="modifyEquipmentOutput" href="${rc.getContextPath()}/manage/equipmentOutput/modifyEquipmentOutput?id={equipmentOutput_id}&navTabId=${navTabId!''}"title="<@label key='editEquipmentOutput.D'>编辑设备产量</@label>" ><span><@label key="edit.B">编辑</@label></span> </a></li> </@buttonRight> 
            <@buttonRight menuCode="EQUIPMENTOUTPUT_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="640" height="320" rel="viewEquipmentOutput" href="${rc.getContextPath()}/manage/equipmentOutput/viewEquipmentOutput?id={equipmentOutput_id}&navTabId=${navTabId!''}" title="<@label key='viewEquipmentOutput.D'>设备产量详情</@label>"><span><@label key="view.B">详情</@label></span> </a></li> </@buttonRight> 
            <@buttonRight menuCode="EQUIPMENTOUTPUT_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo"  href="${rc.getContextPath()}/manage/equipmentOutput/deleteEquipmentOutput?id={equipmentOutput_id}&navTabId=${navTabId!''}" postType="string" rel="ids" title="<@label key='confirmDelEquipmentOutput.M'>确认要删除选择的停机记录吗？</@label>"><span><@label key="delete.B">删除</@label></span> </a></li> </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="165" style="overflow: scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="equipmentCode"<#if (page.orderField?? && page.orderField == 'equipmentCode')>class="${page.orderDirection!''}"</#if>><@label key="equipmentCode.C">设备编号</@label></th>
                <th width="100" orderField="equipmentText"<#if (page.orderField?? && page.orderField == 'equipmentText')>class="${page.orderDirection!''}"</#if>><@label key="equipmentText.C">设备描述</@label></th>
                <th width="100" orderField="theDate"<#if (page.orderField?? && page.orderField == 'theDate')>class="${page.orderDirection!''}"</#if>><@label key="theDate.C">作业日期</@label></th>
                <th width="100" orderField="goodParts"<#if (page.orderField?? && page.orderField == 'goodParts')>class="${page.orderDirection!''}"</#if>><@label key="goodParts.C">良品数量</@label></th>
                <th width="100" orderField="defectiveParts"<#if (page.orderField?? && page.orderField == 'defectiveParts')>class="${page.orderDirection!''}"</#if>><@label key="defectiveParts.C">不良品数量</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as equipmentOutput>
            <tr target="equipmentOutput_id" rel="${equipmentOutput.id!''}">
                <td><input name="ids" value="${equipmentOutput.id!''}" type="checkbox">
                </td>
                <td>${page.startRow + equipmentOutput_index}</td>
                <td>${equipmentOutput.equipmentCode!''}</td>
                <td>${equipmentOutput.equipmentText!''}</td>
                <td>${(equipmentOutput.theDate?string("yyyy-MM-dd"))?if_exists}</td>
                <td>${equipmentOutput.goodParts!''}</td>
                <td>${equipmentOutput.defectiveParts!''}</td>
            </tr>
            </#list> <#else>
            <tr target="equipmentOutput_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="equipmentOutput_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>

<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
})


</script>